package com.yidu.gateway.hello;

import com.yidi.user.RPCUserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class helloController
{
    @Reference
    private RPCUserService userService;

    @GetMapping("hello")
    public String hello(String name)
    {
        return userService.sayHello(name);
    }
}
